<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title><?php echo $title?></title>
<link rel="stylesheet" href="${staticServer}/inc/style/main.css" />
<link rel="stylesheet" href="${staticServer}/inc/style/page.css" />
<link rel="stylesheet" href="${staticServer}/css/struct_info.css" />
<link rel="stylesheet" href="${staticServer}/css/office_add.css" />
<script src="${staticServer}/inc/js/jquery.js"></script>
<script src="${staticServer}/inc/js/pageset.js"></script>
<script src="${staticServer}/inc/js/htmlfilter.js"></script>
<script src="${staticServer}/inc/js/city.js"></script>
<script src="${staticServer}/inc/js/submitter.js"></script>
<script src="${staticServer}/js/web/office_add.js?1.1"></script>
<script>
var contextPath='${contextPath}';

$(function(){
	$("#province").val("<#if office??>${office.province}</#if>");
	$("#city").html("<#if office??><option>${office.city}</option></#if>");
});

function query_num(username){
	$.post( "${contextPath}/index/query_num.json",{
	 "username":username
	 }, function( d ){
		var unum = d.num;
		if(unum!=0){
			document.getElementById("unum").value = unum;
		}else{
			document.getElementById("unum").value = 0;
		}
	}, "json" );
}

</script>
</head>

<body>
<input type="hidden" id="keyname" value="<#if office??>${office.keyname}</#if>" >
	<div id="home_link">
		<ul>
			<li>竞思教育网络办公系统 v1.1 beta</li>
			<li>&gt;</li>
			<li>办公</li>
			<li>&gt;</li>
			<li class="current">各中心详细信息</li>
		</ul>
	</div>
	<div id="caption">
		<ul>
			<li><span class="title">操作提示：</span></li>
			<li>Ctrl+Enter 提交</li>
		</ul>
	</div>
	<div id="container">
		<div id="title"></div>
		<table id="infotable">
			<tr>
				<th align="center">中心名称：</th>
				<td>${office.name}</td>
				<th align="center">所在地:</th>
				<td>${office.address}</td>
			</tr>
			<tr>
				<th align="center">施工方：</th>
				<td><input type="text" id="citys" size="50" value="<#if office??>${office.citys}</#if>"/></td>
				<th align="center">施工方联系方式：</th>
				<td><input type="text" id="citys" size="20" value="<#if office??>${office.citys}</#if>"/></td>
			</tr>
			<tr>
				<th align="center">施工完成时间：</th>
				<td><input type="text" id="citys" size="50" value="<#if office??>${office.citys}</#if>"/></td>
				<th align="center">合同到期时间：</th>
				<td><input type="text" id="citys" size="30" value="<#if office??>${office.citys}</#if>"/></td>
			</tr>
			<tr>
				<th align="center">物业联系方式：</th>
				<td><input type="text" id="address" size="50" value="<#if office??>${office.address}</#if>"/></td>
				<th align="center">维修负责人：</th>
				<td><input type="text" id="citys" size="50" value="<#if office??>${office.citys}</#if>"/></td>
			</tr>
			<tr>
				<th align="center">属于公司的空调：</th>
				<td><input type="text" id="address" size="50" value="<#if office??>${office.address}</#if>"/></td>
				<th align="center">网管负责人：</th>
				<td><input type="text" id="citys" size="50" value="<#if office??>${office.citys}</#if>"/></td>
			</tr>
			<tr>
				<th align="center">区域主管：</th>
				<td>${listobj2.nickname}	:  电话   ${listobj2.Regions}</td>
			</tr>
			<tr>
				<th align="center">中心主任：</th>
				<td>${tlist.nickname}  :  电话   ${tlist.Regions}"</td>
				<th align="center">中心老师:</th>
				<td>
				<textArea id="dk_msg" style="width:500px;height:150px;">
				<#if list??>
					<#list list as list>
${list.nickname} : ${list.job} : ${list.sex} : 电话   ${list.phone}
					</#list>
				</#if>
				<#if AllTealist??>
					<#list AllTealist as alist>
${alist.nickname} ； 训练老师 ； ${alist.sex} ； 电话   ${alist.phone}
					</#list>
				</#if>
				</textArea>
				</td>
			</tr>
		</table>
		<div id="controlbar">
			<a type="button" class="submit" href="${contextPath}/index/office_list.htm">返回中心列表</a>
		</div>
	</div>
</body>
</html>